//
//  ServicesCell.m
//  DaDaLiCai
//
//  Created by apple on 15/11/24.
//  Copyright © 2015年 Mikeshihua. All rights reserved.
//

#import "ServicesCell.h"

@implementation ServicesCell
-(id)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        self.layer.cornerRadius = 5;
        self.layer.masksToBounds = TRUE;
        _serviceImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height - 30)];
        _serviceImageView.clipsToBounds = TRUE;
        _serviceImageView.contentMode = UIViewContentModeScaleAspectFill;
        [self addSubview:_serviceImageView];
        _serviceLable = [[UILabel alloc]initWithFrame:CGRectMake(0, _serviceImageView.frame.size.height, frame.size.width, 30)];
        _serviceLable.backgroundColor = [UIColor whiteColor];
        _serviceLable.textAlignment = NSTextAlignmentCenter;
        _serviceLable.font = [UIFont systemFontOfSize:15];
        _serviceLable.textColor = [UIColor hexStringToColor:@"#5a5a5a"];
        [self addSubview:_serviceLable];
    }
    return self;
}
@end
